Matthias Clasen [Sun, 3 Jan 2016 02:08:50 +0000 (21:08 -0500)]
Revert "Revert "window: Remove suspicious branch""
This reverts commit
2438a06d54636e5074c29bd696e3e81e90288b8d.
See https://bugzilla.gnome.org/show_bug.cgi?id=759705
Cosimo Cecchi [Sun, 3 Jan 2016 02:14:47 +0000 (18:14 -0800)]
levelbar: fix a crash
We should not try to access a block with an index that exceeds the
number of blocks in the widget.
Matthias Clasen [Sun, 3 Jan 2016 01:53:54 +0000 (20:53 -0500)]
separator toolitem: Respect ::draw property
This was lost when I converted the widget to use a gadget.
https://bugzilla.gnome.org/show_bug.cgi?id=760018
Cosimo Cecchi [Fri, 1 Jan 2016 22:50:43 +0000 (14:50 -0800)]
spinbutton: fix a typo
Cosimo Cecchi [Sat, 2 Jan 2016 23:28:35 +0000 (15:28 -0800)]
menuitem: move chaining up to draw inside gadget
This is more consistent with what other widgets do.
Marek Černocký [Sat, 2 Jan 2016 20:13:40 +0000 (21:13 +0100)]
Updated Czech translation
Timm Bäder [Sat, 2 Jan 2016 14:40:50 +0000 (15:40 +0100)]
testframe: Pass correct state to GtkStyleContext API
Timm Bäder [Wed, 30 Dec 2015 14:45:07 +0000 (15:45 +0100)]
GtkImage: Simplify _set_from_icon_name
We don't need to strdup icon_name since that will happen in
_gtk_icon_helper_set_icon_name anyway.
Andika Triwidada [Sat, 2 Jan 2016 12:27:16 +0000 (12:27 +0000)]
Updated Indonesian translation
(cherry picked from commit
45b3c553a93ed6a9e3eea26e7c8337dcd9fa77b6)
Andika Triwidada [Sat, 2 Jan 2016 12:22:34 +0000 (12:22 +0000)]
Updated Indonesian translation
(cherry picked from commit
1aa5f9278423f370d7490d83e8582dae087e2f6a)
Rafael Fontenelle [Sat, 2 Jan 2016 06:48:23 +0000 (06:48 +0000)]
Updated Brazilian Portuguese translation
(cherry picked from commit
e96c689aa1e60e561f4db67725d53fccc44234ec)
Christoph Reiter [Thu, 17 Dec 2015 17:02:13 +0000 (18:02 +0100)]
gtkdnd-quartz: fix gtk_drag_begin_internal
gtk_drag_begin_internal was changed to take a GtkImageDefinition
instead of a GtkIconHelper. This adjusts the quartz variant
accordingly.
https://bugzilla.gnome.org/show_bug.cgi?id=759607
Alberts Muktupāvels [Mon, 28 Dec 2015 18:46:23 +0000 (20:46 +0200)]
gtkheaderbar: update window buttons also on realize
After
bb34db6 _gtk_header_bar_update_window_buttons function is
called before application menu is set. This caused regression -
app menu button is initially hidden.
https://bugzilla.gnome.org/show_bug.cgi?id=756618
Yosef Or Boczko [Thu, 31 Dec 2015 17:39:41 +0000 (19:39 +0200)]
Updated Hebrew translation
Yosef Or Boczko [Thu, 31 Dec 2015 17:38:23 +0000 (19:38 +0200)]
Updated Hebrew translation
Yosef Or Boczko [Thu, 31 Dec 2015 16:49:30 +0000 (18:49 +0200)]
Updated Hebrew translation
Yosef Or Boczko [Thu, 31 Dec 2015 16:47:57 +0000 (18:47 +0200)]
Updated Hebrew translation
Руслан Ижбулатов [Wed, 30 Dec 2015 18:05:36 +0000 (18:05 +0000)]
Fix include path for gtkiconfactoryprivate.h
Руслан Ижбулатов [Wed, 30 Dec 2015 18:05:05 +0000 (18:05 +0000)]
Fix to compile for C libraries with no flockfile
Also use MS variant of flockfile, if available
(requires MSVCRT compatible with MSVCR90 or newer).
Cosimo Cecchi [Wed, 30 Dec 2015 18:44:12 +0000 (10:44 -0800)]
scrolledwindow: add missing deprecation flag
Cosimo Cecchi [Wed, 30 Dec 2015 02:31:10 +0000 (18:31 -0800)]
menuitem: fix a crash when reserve_indicator is TRUE
In that case, code expects an arrow gadget to be present but we're not
creating it in every occurrence.
Fix it by ensuring there will be an arrow gadget when reserve_indicator
is TRUE.
Cosimo Cecchi [Wed, 30 Dec 2015 00:33:34 +0000 (16:33 -0800)]
toolitem: fix a copy/paste typo
Cosimo Cecchi [Wed, 23 Dec 2015 17:54:42 +0000 (09:54 -0800)]
scrolledwindow: port to use a gadget
Cosimo Cecchi [Wed, 23 Dec 2015 04:45:33 +0000 (20:45 -0800)]
scrolledwindow: deprecate scrollbars-within-bevel style property
These days all the themes set it to TRUE, and it's not clear what
happens with overlay scrollbars...
Cosimo Cecchi [Mon, 28 Dec 2015 20:21:27 +0000 (12:21 -0800)]
viewport: don't render a background over the bin window
GtkViewport currently tries to draw a background over the bin window.
The feature is a bit broken at the moment, as it does not take into
account padding that might have been set on the GtkViewport, but in
general it does not seem very useful, and goes somewhat against the CSS
box model where every widget/gadget is responsible to draw its own
background. For a fix, we could either have the viewport gain a "bin"
gadget, or we could stop drawing the background.
As it isn't clear that there are any users of this feature, stop drawing
the background; a client can achieve the same effect by drawing the
background on the widget inside the viewport itself.
Cosimo Cecchi [Wed, 23 Dec 2015 01:55:18 +0000 (17:55 -0800)]
viewport: port to use a gadget
This will get us margin support, among other things, and simplifies the
code.
Cosimo Cecchi [Wed, 23 Dec 2015 00:26:28 +0000 (16:26 -0800)]
viewport: trivial code cleanup
Cosimo Cecchi [Tue, 22 Dec 2015 23:10:23 +0000 (15:10 -0800)]
viewport: use gtk_container_class_handle_border_width()
No need to do this manually.
Benjamin Otte [Wed, 23 Dec 2015 00:50:20 +0000 (01:50 +0100)]
gadget: Handle visibility
As GtkCssNode has the visibility concept, it makes sense to mirror it in
gadgets.
Do what visibility does in widgets: Hidden gadgets can't be drawn or
allocated and request a 0x0 size.
Note that just like widgets, gadget visibility must not be changed in
size request, allocate or draw handlers.
GtkWidget::child-visible has no equivalent yet, code will have to
emulate that manually.
Matthias Clasen [Sat, 16 May 2015 22:54:35 +0000 (18:54 -0400)]
Drop deprecated pango-utils api
Copy the few parsing functions we need.
Ben Iofel [Mon, 28 Dec 2015 03:13:21 +0000 (19:13 -0800)]
Raleigh: Don't use deprecated pseudo classes
Matthias Clasen [Tue, 29 Dec 2015 04:15:53 +0000 (23:15 -0500)]
Set ID on css node right away
Previously, the ID was only set on the CSS node as a side-effect
of calling gtk_widget_get_style_context. This was showing up
in CSS style tests as nodes lacking their IDs.
Matthias Clasen [Tue, 29 Dec 2015 03:36:29 +0000 (22:36 -0500)]
Fix a comment
Matthias Clasen [Mon, 28 Dec 2015 19:41:33 +0000 (14:41 -0500)]
Add a transfer annotation
This was confusing me momentarily, so add an explicit annotation.
Mario Blättermann [Mon, 28 Dec 2015 21:16:11 +0000 (21:16 +0000)]
Updated German translation
Matthias Clasen [Mon, 28 Dec 2015 15:27:08 +0000 (10:27 -0500)]
statusicon: Avoid criticals
The code handles the possibility of pixbuf being NULL, but
after
b411c318321fd4de556926119cbc6e3ba14f073a we must be
prepared for surface already being NULL. Pointed out by
Albert Muktupāvels,
https://bugzilla.gnome.org/show_bug.cgi?id=759917
Matthias Clasen [Mon, 28 Dec 2015 15:24:02 +0000 (10:24 -0500)]
checkbutton: Update state initially
Without this, the check node starts out without the :dir(ltr)
state, at least.
Matthias Clasen [Sun, 27 Dec 2015 23:37:19 +0000 (18:37 -0500)]
css: Deprecate :sorted pseudo class
This was used with regions in GtkTreeView, and is not used
anymore, so deprecate it.
Matthias Clasen [Sun, 27 Dec 2015 22:31:27 +0000 (17:31 -0500)]
Fix outline-radius css parser test
The outline-radius properties all got a -gtk prefix.
Matthias Clasen [Sun, 27 Dec 2015 22:23:40 +0000 (17:23 -0500)]
Fix the pseudo-classes-known css test
The test needs to be updated for the renamed :dnd pseudo class.
We also need to add a .errors file for the deprecation errors
that we are now producing.
Matthias Clasen [Sun, 27 Dec 2015 22:24:25 +0000 (17:24 -0500)]
css: Redo the pseudo class deprecation warnings
Putting the deprecated class behind the official variant does
not work for the case of :focus and :focused - we were matching
:focus and leave a dangling 'ed'. So, put the deprecated classes
before the official variant, and explicitly mark them as deprecated.
Matthias Clasen [Sun, 27 Dec 2015 22:21:50 +0000 (17:21 -0500)]
test-css-parser: Add a way to generate output
Use test-css-parser --generate foo.css to see the parser
output on stdout. This makes it more convenient to add new
css files to the testsuite.
Matthias Clasen [Sun, 27 Dec 2015 02:41:59 +0000 (21:41 -0500)]
Cosmetic change
Matthias Clasen [Sun, 27 Dec 2015 02:40:19 +0000 (21:40 -0500)]
inspector: Don't leak weak references
These come back to bite us when the inspector is no longer around
at the end of the program.
https://bugzilla.gnome.org/show_bug.cgi?id=759768
Matthias Clasen [Sun, 27 Dec 2015 01:12:04 +0000 (20:12 -0500)]
inspector: Remove some dead code
Since commit
bffeae6203ffe5ea91988d4439571568abc95ab7, the
tree path is not used for anything useful anymore, so do away
with it entirely.
Matthias Clasen [Sat, 26 Dec 2015 21:04:02 +0000 (16:04 -0500)]
docs: Add missing value syntax for border-image
Руслан Ижбулатов [Sun, 27 Dec 2015 02:02:19 +0000 (02:02 +0000)]
Fix a surface leak
Was introduced as part of
b79a187d47ee5c45952fab60c141fcaed7e05ef6.
Results in memory leaks (and GDI objects leaks on W32).
Carlos Soriano [Sat, 26 Dec 2015 19:52:53 +0000 (20:52 +0100)]
gtkframe: format fix
Carlos Soriano [Sat, 26 Dec 2015 19:52:31 +0000 (20:52 +0100)]
gtkframe: remove unused variable
And fix the compiler warning
Matthias Clasen [Thu, 24 Dec 2015 23:10:04 +0000 (18:10 -0500)]
Redo the CSS docs
Split the CSS docs off from the GtkCssProvider docs and
give them their own chapter. Among other things, this commit
introduces more or less complete definitions of the syntax for
the supported selectors, a complete list of all supported
properties, and definitions for their values. This includes
documentation for GTK+-specific properties such as -gtk-icon-source.
Matthias Clasen [Sat, 26 Dec 2015 03:24:58 +0000 (22:24 -0500)]
Drop the :dnd syntax altogether
This was only introduced a few weeks ago. We don't need to keep
this around, now that we support the proper CSS syntax.
Matthias Clasen [Thu, 24 Dec 2015 23:43:03 +0000 (18:43 -0500)]
Adwaita: Don't use deprecated pseudo classes
Matthias Clasen [Thu, 24 Dec 2015 23:08:20 +0000 (18:08 -0500)]
Add deprecation warnings for pseudo states
Emit a deprecation error in the cases where we have
a CSS name for a custom pseudo class.
Matthias Clasen [Thu, 24 Dec 2015 23:04:15 +0000 (18:04 -0500)]
Use CSS syntax for drop highlighting
I hadn't noticed the :drop() pseudo state in the CSS4 Selectors
spec when I added this a while ago. This commit renames
GTK_STATE_FLAG_DND to GTK_STATE_FLAG_DROP_ACTIVE and adds
:drop(active) as equivalent to the :dnd pseudo state.
Matthias Clasen [Sat, 26 Dec 2015 03:22:51 +0000 (22:22 -0500)]
Add docs for GtkCssSection
Carlos Garnacho [Fri, 25 Dec 2015 13:23:20 +0000 (14:23 +0100)]
GdkSeat: Use g_intern_static_string() for signal names
https://bugzilla.gnome.org/show_bug.cgi?id=759857
Marek Černocký [Fri, 25 Dec 2015 09:50:39 +0000 (10:50 +0100)]
Updated Czech translation
Lapo Calamandrei [Wed, 23 Dec 2015 23:02:12 +0000 (00:02 +0100)]
Adwaita: fix notebook close button
Lapo Calamandrei [Wed, 23 Dec 2015 19:35:06 +0000 (20:35 +0100)]
Adwaita: use min-height/width for entry and button sizing
Lapo Calamandrei [Wed, 23 Dec 2015 17:57:04 +0000 (18:57 +0100)]
Adwata: fix switch slider border clash
Florian Müllner [Wed, 23 Dec 2015 00:51:30 +0000 (01:51 +0100)]
label: Deny drag gesture when not selectable
We don't actually do anything when the label is not selectable
except for consuming the event, which breaks for instance titlebar
drags with labels that contain links. Simply deny the gesture in
that case to allow the event to bubble up normally.
https://bugzilla.gnome.org/show_bug.cgi?id=759798
Chun-wei Fan [Wed, 23 Dec 2015 10:58:42 +0000 (18:58 +0800)]
gtkcssnumbervalue.c: Include fallback-c89.c to fix build
... on older Visual Studio versions, where isinf() is not available, and
copy the isinf() implementation from gdk/fallback-c89.c to
gtk/fallback-c89.c.
Matthias Clasen [Wed, 23 Dec 2015 06:56:07 +0000 (01:56 -0500)]
Forgotten files
Matthias Clasen [Wed, 23 Dec 2015 04:46:59 +0000 (23:46 -0500)]
widget: Be safe against windows losing their frame clock
gdk_widget_get_frame_clock can return NULL. In particular,
this can happen when the drag window is destroyed at the end
of a DND operation. Handle this gracefully when it happens.
Alberts Muktupāvels [Wed, 23 Dec 2015 03:30:11 +0000 (05:30 +0200)]
gtksettings: notify after property reset
Matthias Clasen [Wed, 23 Dec 2015 02:33:08 +0000 (21:33 -0500)]
Add parser tests for animation properties
This adds tests for animation-name, animation-duration,
animation-timing-function, animation-iteration-count,
animation-direction, animation-play-state, animation-delay
and animation-fill-mode.
Matthias Clasen [Tue, 22 Dec 2015 04:28:48 +0000 (23:28 -0500)]
Add a parser tests for transition properties
This adds tests for transition-property, transition-delay
and transition-timing-function.
Matthias Clasen [Tue, 22 Dec 2015 04:23:05 +0000 (23:23 -0500)]
Add parser tests for min-width and min-height
Matthias Clasen [Tue, 22 Dec 2015 03:14:21 +0000 (22:14 -0500)]
Add parser tests for border-image properties
This adds tests for border-image-source, border-image-repeat,
border-image-slice and border-image-width.
Matthias Clasen [Wed, 23 Dec 2015 02:58:31 +0000 (21:58 -0500)]
fix printing of numbers
We should be printing infinite, not inf.
Matthias Clasen [Wed, 23 Dec 2015 02:19:11 +0000 (21:19 -0500)]
Trivial changes
Cosimo Cecchi [Tue, 22 Dec 2015 23:36:00 +0000 (15:36 -0800)]
menuitem: don't use content allocation to resize the GdkWindow
This is a fallout from the gadget conversion.
Matthias Clasen [Tue, 22 Dec 2015 21:20:09 +0000 (16:20 -0500)]
widget-factory: Rename outline radius in css
Rename all outline*radius properties to -gtk-outline*radius.
Matthias Clasen [Tue, 22 Dec 2015 21:19:18 +0000 (16:19 -0500)]
Adwaita: Adapt to previous commit
Rename all outline*radius properties to -gtk-outline*radius.
Matthias Clasen [Tue, 22 Dec 2015 21:18:10 +0000 (16:18 -0500)]
Prefix outline radius CSS properties
These are not in any CSS specifications, so mark them as GTK+
additions by giving them a -gtk prefix. The old names still work.
Matthias Clasen [Tue, 22 Dec 2015 19:22:13 +0000 (14:22 -0500)]
Add some docs to GtkIcon
Matthias Clasen [Tue, 22 Dec 2015 19:09:36 +0000 (14:09 -0500)]
Add some docs to GtkBuiltinIcon
Cosimo Cecchi [Tue, 22 Dec 2015 19:56:23 +0000 (11:56 -0800)]
stylecontext: fix gtk-doc comment syntax
Cosimo Cecchi [Tue, 22 Dec 2015 19:52:43 +0000 (11:52 -0800)]
Adwaita: don't set deprecated style property
Matthias Clasen [Tue, 22 Dec 2015 18:48:32 +0000 (13:48 -0500)]
Adwaita: Fix app-notification theming
The way to disable the frame border has changed.
Matthias Clasen [Tue, 22 Dec 2015 18:33:43 +0000 (13:33 -0500)]
Fix GtkFrame padding
This was showing up in the app-notification in widget-factory.
Cosimo Cecchi [Tue, 22 Dec 2015 18:52:42 +0000 (10:52 -0800)]
combobox: remove unused struct member
The box was removed a while ago.
Cosimo Cecchi [Tue, 22 Dec 2015 18:49:21 +0000 (10:49 -0800)]
Adwaita: remove combobox separator styling
The separator does not exist anymore.
Cosimo Cecchi [Tue, 22 Dec 2015 02:54:41 +0000 (18:54 -0800)]
combobox: deprecate shadow-type style property
It does not add any value to what can be achieved through regular CSS
styling.
Cosimo Cecchi [Tue, 22 Dec 2015 02:43:19 +0000 (18:43 -0800)]
combobox: port to use a gadget
Wrap the size request and allocate code into a GtkCssCustomGadget. This
makes margins work on GtkComboBox.
Cosimo Cecchi [Tue, 22 Dec 2015 02:32:14 +0000 (18:32 -0800)]
combobox: use a private variable when possible
Instead of dereferencing the same variable over and over.
Cosimo Cecchi [Tue, 22 Dec 2015 01:50:42 +0000 (17:50 -0800)]
combobox: trivial code cleanup
Cosimo Cecchi [Tue, 22 Dec 2015 01:47:44 +0000 (17:47 -0800)]
combobox: remove unneeded check
The combobox always has a window.
Cosimo Cecchi [Mon, 21 Dec 2015 22:45:58 +0000 (14:45 -0800)]
combobox: use GtkIcon to render button arrow
We can now use the newly introduced GtkIcon widget to properly render
the arrow in the combobox with CSS.
Cosimo Cecchi [Mon, 21 Dec 2015 22:46:44 +0000 (14:46 -0800)]
Introduce GtkIcon private class
This is an utility widget that wraps a GtkBuiltinIcon for situations
where using a real widget is more convenient than a gadget.
Matthias Clasen [Tue, 22 Dec 2015 15:30:51 +0000 (10:30 -0500)]
menuitem: Simplify separators
For regular separators, we just rely on standard CSS background
rendering nowadays. Do the same for separators in menus.
https://bugzilla.gnome.org/show_bug.cgi?id=759765
Matthias Clasen [Tue, 22 Dec 2015 02:56:10 +0000 (21:56 -0500)]
Revert "window: Remove suspicious branch"
This reverts commit
67ab00e01ec06d7b05a82c3d80b235ac6c4abfd2.
See https://bugzilla.gnome.org/show_bug.cgi?id=759705
for a case where this makes a difference.
Lapo Calamandrei [Tue, 22 Dec 2015 10:53:27 +0000 (11:53 +0100)]
Adwaita: fix bogus rounded corners on split headerbars
we have to do some assumptions for css selectors limits for this
particular case, so for split headerbars to work correctly the
actual haderbars need not to have the titlebar class applied.
Kjell Ahlstedt [Tue, 22 Dec 2015 08:39:28 +0000 (09:39 +0100)]
GdkSeat: Add G_BEGIN_DECLS and G_END_DECLS
https://bugzilla.gnome.org/show_bug.cgi?id=759771
Chun-wei Fan [Tue, 22 Dec 2015 08:33:32 +0000 (16:33 +0800)]
gtk/gtkbuiltinicon.c: Fix build
The gtk_builtin_icon_get_default_size_property returns a const char *,
in a way such that some compilers insist that something that is of a
pointer value be returned, so fix that by replacing 0 with NULL.
Paolo Borelli [Sat, 19 Dec 2015 09:31:32 +0000 (10:31 +0100)]
W32: avoid code duplication in gdkdevice-win32|virtual
The same get_position function is cut and pasted in the two
classes.
Daiki Ueno [Tue, 22 Dec 2015 02:21:56 +0000 (11:21 +0900)]
inspector: Avoid crash when canceling at startup
When clicking "Cancel" on the "Do you want to use GTK+ Inspector?"
dialog, unregister the update_debugging idle handler. Also, steal
reference to 'inspector_window' while gtk_destroy_widget(), to make
further gtk_window_update_debugging() calls as a no-op.
https://bugzilla.gnome.org/show_bug.cgi?id=759764
Matthias Clasen [Tue, 22 Dec 2015 01:16:14 +0000 (20:16 -0500)]
Adwaita: Fix overwrite cursors in entries
GtkEntry uses the background color to render the text over
the block cursor. A transparent background color makes that
not work.
Matt Watson [Sat, 19 Dec 2015 01:47:00 +0000 (17:47 -0800)]
flowbox: remove unused prelight code
It was causing needless redraws
https://bugzilla.gnome.org/show_bug.cgi?id=759757
Matthias Clasen [Mon, 21 Dec 2015 21:32:56 +0000 (16:32 -0500)]
Fix import css parser tests
Don't use nonexisting properties here either